﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class cameraFollow : MonoBehaviour {

    public Transform player;
	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
        if(player.position.y>transform.position.y){
            
            transform.position = new Vector3(0f, player.position.y, transform.position.z);
        }

	}




}
